<?php  session_start();
/**
* @package		Parents@School
* @copyright	                Copyright (C) 2008 Kristof Beckers. All rights reserved.
* @Version		2.0
* @license		GNU/GPL, see LICENSE.php
**/
include ("../../include/config.php");
require_once ("../../include/db.php");
include ("../../include/header.php");
if(isset($_SESSION['myusername'])){
	if ($_SESSION['admin'] == "$adminid") {
?>
<head>
<link rel="stylesheet" href="../../css/template_css.css" type="text/css"/> 
</head>

<body>
<div align="center"><img src="<?php echo "../$logo" ; ?>" />
</div>
<div align="center">
<p><a href="users.php"><img src="../../images/users.png" width="128" height="128" border="0"></a></p>
<p>Selecteer de gebruiker die je wil verwijderen en klik op &quot; Verwijder&quot; .</p>
<p>&nbsp;</p>
<form name="form1" method="post" action="users_delete_process.php">
  <table width="100%" border="0" class="moduletable-latest1">
    <tr>
      <td>Gebruiker </td>
      <td>Klas</td>
    </tr>
  </table>


<?php 
$sql = "SELECT * FROM $tbusers";
$result = mysql_query($sql);

while ($row = mysql_fetch_array($result)){
	$id = $row['ID'];
	$username = $row['username'];
	$klas = $row['klas'];
	
	?>
	  <table width="100%" border="0" class="moduletable-latest1">
    <tr>
      <td><input name="iddelete" type="radio" value="<?php echo $id ; ?>">
        <?php echo $username ; ?> </td>
      <td><?php echo $klas ; ?></td>
    </tr>
  </table>
	
<?php
}}}
?>

<input name="Verwijder" type="submit" id="Verwijder" value="Verwijder">
</form>
</div>
</body>
